﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RevOfertas.aspx.vb" Inherits="Empresas_RevOfertas_RevOfertas" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 52px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Label ID="Label7" runat="server" CssClass="Titulo" 
                Text="Revisión de Ofertas"></asp:Label>
            <br />
            <br />
            <br />
            <table style="width:100%;">
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label16" runat="server" Text="Empresa"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
                            DataSourceID="ObjEmpresas" DataTextField="Nombre" DataValueField="Id">
                        </asp:DropDownList>
                        <asp:ObjectDataSource ID="ObjEmpresas" runat="server" 
                            OldValuesParameterFormatString="original_{0}" SelectMethod="GetRecords" 
                            TypeName="Empresas"></asp:ObjectDataSource>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style1">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                CellPadding="4" DataKeyNames="Id_Oferta" ForeColor="#333333" 
                GridLines="None" SkinID="gridView" Width="980px">
                <AlternatingRowStyle BackColor="White" ForeColor="#389131" />
                <Columns>
                    <asp:TemplateField HeaderText="Empresa">
                        <ItemTemplate>
                            <asp:Label ID="Label11" runat="server" Text='<%# Bind("Empresa") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Titulo">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("Titulo") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Descripción">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("Descripcion") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Tipo de Empleo">
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("Nom_Tip_Empleo") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Fecha de Inicio">
                        <ItemTemplate>
                            <asp:Label ID="Label4" runat="server" Text='<%# Bind("Comienzo","{0:d}") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Duración">
                        <ItemTemplate>
                            <asp:Label ID="Label5" runat="server" Text='<%# Bind("Duracion") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Salario">
                        <ItemTemplate>
                            <asp:Label ID="Label6" runat="server" Text='<%# Bind("Salario","{0:c}") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Vacantes">
                        <ItemTemplate>
                            <asp:Label ID="Label7" runat="server" Text='<%# Bind("Vacantes") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Contacto">
                        <ItemTemplate>
                            <asp:Label ID="Label8" runat="server" Text='<%# Bind("Contacto") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Celular">
                        <ItemTemplate>
                            <asp:Label ID="Label9" runat="server" Text='<%# Bind("Celular") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Estado">
                        <ItemTemplate>
                            <asp:Label ID="Label10" runat="server" Text='<%# Bind("Nom_Estado") %>'></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:DropDownList ID="CboEstado" runat="server" 
                                selectedvalue='<%# Bind("Estado") %>'>
                                <asp:ListItem Value="SO">PENDIENTE</asp:ListItem>
                                <asp:ListItem Value="PU">PUBLICAR</asp:ListItem>
                                <asp:ListItem Value="RE">RECHAZAR</asp:ListItem>
                            </asp:DropDownList>
                        </EditItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField ShowHeader="False">
                        <EditItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                CommandName="Update" Text="Actualizar"></asp:LinkButton>
                            &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                                CommandName="Cancel" Text="Cancelar"></asp:LinkButton>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                                CommandName="Edit" Text="Editar"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <asp:ObjectDataSource ID="ObjOfertas" runat="server" 
                OldValuesParameterFormatString="original_{0}" SelectMethod="GetRecords" 
                TypeName="Ofertas"></asp:ObjectDataSource>
            <br />
            <asp:Button ID="hiddenTargetControlForModalPopup" runat="server" 
                style="DISPLAY: none" />
            <ajaxToolkit:ModalPopupExtender ID="ModalPopup" runat="server" 
                BackgroundCssClass="modal" BehaviorID="programmaticModalPopupBehavior" 
                DropShadow="True" PopupControlID="programmaticPopup" 
                PopupDragHandleControlID="programmaticPopupDragHandle" 
                TargetControlID="hiddenTargetControlForModalPopup">
            </ajaxToolkit:ModalPopupExtender>
            <asp:Panel ID="programmaticPopup" runat="server" BackColor="White" 
                CssClass="ModalPanel2" Height="211px" Width="404px">
                <asp:Panel ID="programmaticPopupDragHandle" runat="Server" BackColor="#2E4C0E" 
                    CssClass="BarTitleModal2" Height="30">
                    <div style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; VERTICAL-ALIGN: middle; PADDING-TOP: 5px">
                        <asp:Label ID="Label15" runat="server" Font-Bold="True" ForeColor="White" 
                            Text="RELACORP"></asp:Label>
                    </div>
                </asp:Panel>
                <div style="TEXT-ALIGN: center">
                    <BR />
                    <asp:Image ID="ImgRst" runat="server" Height="64px" 
                        ImageUrl="~/imagenes/error.png" Width="64px" />
                    <br />
                    <asp:Label ID="MsgModalPanel" runat="server" Height="33px" 
                        Text="Mensaje de Salida" Width="278px"></asp:Label>
                    <BR />
                    <BR />
                    <asp:Button ID="Button1" runat="server" Text="Aceptar" />
                    &nbsp;<BR />
                    <BR />
                </div>
                <BR />
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />
</div>
</asp:Content>

